<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>alignSelf</title>
  <style>
    .d {
      width: 100%;
      height: 300px;
      background-color: orange;
      display: flex;
    }
    .d1,.d2,.d3,.d4,.d5 {
      width: 200px;
      /*height: 100px;*/
      background-color: lightblue;
      margin-bottom: 5px;
      margin-right: 5px;
    }
    .d1 {
      align-self: flex-start;
    }
    .d2 {
      align-self: flex-end;
    }
    .d3 {
      align-self: center;
    }
    .d4 {
      align-self: stretch;
    }
  </style>
</head>
<body>
<div class="d">
  <div class="d1">d1(align-self:flex-start)</div>
  <div class="d2">d2(align-self:flex-end)</div>
  <div class="d3">d3(align-self:center)</div>
  <div class="d4">d4(align-self:stretch)</div>
  <div class="d5">d5(align-self:stretch默认值)</div>
</div>
</body>
</html>
